#!/usr/bin/bash
cd /etc/openvpn/cerdir
/soft/easy/easyrsa/easyrsa revoke $1
rm -rf /etc/openvpn/cerdir/pki/issued/${1}.crt
rm -rf /etc/openvpn/cerdir/pki/private/${1}.key
rm -rf /etc/openvpn/cerdir/pki/reqs/${1}.req
rm -rf /etc/openvpn/cerdir/pki/inline/${1}.inline


#ssh root@172.16.50.250 "rm -rf /etc/openvpn/cerdir" >/dev/null 2>&1
#scp -rdp /etc/openvpn/cerdir root@172.16.50.250:/etc/openvpn/ >/dev/null 2>&1
~                                                                              
